package com.qianf.qfoffice.entity;

import java.io.Serializable;

/**
 * 数据库中question对应的实体类
 */
public class Question implements Serializable {

    private int id;

    //用户id
    private String u_no;

    //问题
    private String question;

    //答案
    private String answer;

    //问题类型
    private String qtype;

    //问题评分星级
    private int star;

    private String flag;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getU_no() {
        return u_no;
    }

    public void setU_no(String u_no) {
        this.u_no = u_no;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getQtype() {
        return qtype;
    }

    public void setQtype(String qtype) {
        this.qtype = qtype;
    }

    public int getStar() {
        return star;
    }

    public void setStar(int star) {
        this.star = star;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", u_no='" + u_no + '\'' +
                ", question='" + question + '\'' +
                ", answer='" + answer + '\'' +
                ", qtype='" + qtype + '\'' +
                ", star=" + star +
                ", flag='" + flag + '\'' +
                '}';
    }
}
